#!/usr/bin/env python3
# -*- coding: utf-8 -*-

num = int(input('input your grade:'))
if num > 100 or num < 0:
	print("your input is error")
elif num > 80:
	print("perfect")
elif num > 60:
	print("ok")
else:
	print("go die")